package com.xzit.day03.controller;

import com.xzit.day03.config.GroupBuyConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GroupBuyController {

    @Autowired
    private GroupBuyConfig config;

    @GetMapping("/groupbuy")
    public String showPlatform() {
        return "当前使用的社区团购平台是：" + config.getPlatform();
    }
}
